<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    
    <title>My JSP 'list.jsp' starting page</title>
     <meta http-equiv="Refresh" content="2" />


  </head>
  
  <body>
  <ul><%
  List<String> nameList= (List<String>)application.getAttribute("nameList");
  for(String name:nameList){
    %>
   <li><%=name %></li>
    
    <%} %>
    </ul>
    
  </body>
</html>
